# 项目名称: meiduo_mall
# 文件名称: urls.py
# 创建时间: 2023/9/4 13:08
# 文件编码: utf-8
# 代码编辑: 宏图士

from django.urls import re_path
from . import views

app_name = "users"
urlpatterns = [
    # 注册
    re_path(r'^register/$', views.RegisterView.as_view()),
    # 登录
    re_path(r'^login/$', views.LoginView.as_view()),
    # 判断用户名是否重复
    re_path(r'^username/(?P<username>[a-zA-Z0-9_-]{2,20})/count/$', views.UsernameCount.as_view()),
    # 判断手机号是否重复
    re_path(r'^mobile/(?P<mobile>1[345789]\d{9})/count/$', views.MobileCountView.as_view()),

]
